package com.guoguo.service;

import com.guoguo.base.PageBean;
import com.guoguo.entity.Category;
import com.guoguo.entity.vo.AcCategoryGroupVO;
import com.guoguo.entity.vo.CategoryVO;
import com.guoguo.entity.vo.ImagesVO;

import java.util.Date;
import java.util.List;

/**
 * Created by Administrator on 2017/8/9 0009.
 */
public interface ICategoryService {

    /**
     * 查询分类列表
     *
     * @return
     */
    PageBean<AcCategoryGroupVO> getCategory(int pageNum, int pageSize);

    List<CategoryVO> getCategoryList();

    /**
     * 按条件查询序号逆序
     *
     * @return
     */
    PageBean<AcCategoryGroupVO> selectBySortDesc(String cateName,Integer isShow,String groupId,int pageNum, int pageSize);

    /**
     * 按条件查询序号正序
     *
     * @return
     */
    PageBean<AcCategoryGroupVO> selectBySortAsc(String cateName,Integer isShow,String groupId,int pageNum, int pageSize);

    /**
     * 按条件查询创建时间正序
     * @return
     */
    PageBean<AcCategoryGroupVO> selectByCreateTimeAsc(String cateName,Integer isShow,String groupId,int pageNum, int pageSize);

    /**
     * 按条件查询创建时间逆序
     * @return
     */
    PageBean<AcCategoryGroupVO> selectByCreateTimeDesc(String cateName,Integer isShow,String groupId,int pageNum, int pageSize);

    Category addCategory(String cateId, String cateName, String cateDescription, String groupId, int sort, Date createTime, Date updateTime);

    /**
     * @param categorys
     * @return
     */
    int count(Category categorys);

    int insert(Category categorys);

    int insertSelective(Category categorys);

    Category selectByPrimaryKey(String cateId);

    int deleteByPrimaryKey(String cateId);

    Category updateBySelective();

    int updateCategory(Category category);

    /**
     * 逻辑删除
     *
     * @param cateId
     * @return
     */
    int UDByPrimaryKey(String cateId);


}
